<?php
/**
* @package   havefnu
* @subpackage havefnuportal
* @author    FoxMaSk
* @copyright 2008 FoxMaSk
* @link      http://www.havefnu.com
* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
*/

class warsZone extends jZone {
    protected $_tplname='wars';

    protected function _prepareTpl(){
        $id_team = $this->param('id_team');
        if (!$id_team) return;
        $dao = jDao::get('havefnu~war');  
        $wars = $dao->findByIdTeam($id_team);   
        $this->_tpl->assign('wars',$wars);                
    }
}